package org.eclipse.wst.server.preview.openejb.jetty.monitor;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class SetterServlet extends HttpServlet{
	
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		Status.setStarted();
		response.setContentType("text/plain");
		ServletOutputStream out = response.getOutputStream();
		if( Status.isStarted() )
			out.println("OpenEJB Container Started");
	}
}
